package com.github.catvod.spider.merge;

import java.io.IOException;
import okhttp3.Call;
import okhttp3.Response;

public abstract class L<T> {
  private T h = null;
  
  protected void V0(T paramT) {
    this.h = paramT;
  }
  
  public T getResult() {
    return this.h;
  }
  
  protected void h(Call paramCall, Response paramResponse) {
    paramCall = (Call)onParseResponse(paramCall, paramResponse);
    V0((T)paramCall);
    onResponse((T)paramCall);
  }
  
  protected void onError(Call paramCall, Exception paramException) {
    onFailure(paramCall, paramException);
  }
  
  protected abstract void onFailure(Call paramCall, Exception paramException);
  
  protected abstract T onParseResponse(Call paramCall, Response paramResponse);
  
  protected abstract String onResponse(T paramT);
  
  public static abstract class Tw extends L<Response> {
    public Response onParseResponse(Call param1Call, Response param1Response) {
      return param1Response;
    }
  }
  
  public static abstract class yh extends L<String> {
    public void onError(Call param1Call, Exception param1Exception) {
      V0((T)"");
      super.onError(param1Call, param1Exception);
    }
    
    public String onParseResponse(Call param1Call, Response param1Response) {
      try {
        return param1Response.body().string();
      } catch (IOException iOException) {
        return "";
      } 
    }
  }
}


/* Location:              /Users/hetaiyi/Desktop/my/tech/java/study/aa/temp/temp.jar!/com/github/catvod/spider/merge/L.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */